package com.zhuiyun.project.api.physician.service.serviceimpl;

import com.zhuiyun.project.api.physician.entity.AppPhysician;
import com.zhuiyun.project.api.physician.entity.DoctorAudit;
import com.zhuiyun.project.api.physician.mapper.DoctorAuditMapper;
import com.zhuiyun.project.api.physician.service.DoctorAuditService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ClassName DoctorAuditServiceImpl
 * @Description TODO 审核医师记录表
 * @Author kdj
 * @Date 2023/8/4 14:35
 **/
@Service
public class DoctorAuditServiceImpl implements DoctorAuditService {
    @Autowired
    private DoctorAuditMapper doctorAuditMapper;
    /**
     * @param appPhysicianLess
     * @Author kdj
     * @Description  添加审核医师记录
     * @Date 2023/8/4 15:09
     * @Return int
     */
    @Override
    public int insertPhyRecord(AppPhysician appPhysicianLess) {
        DoctorAudit doctorAudit = new DoctorAudit();
        doctorAudit.setDelFlag(0);
        doctorAudit.setDoctorId(appPhysicianLess.getUserId());
        doctorAudit.setSubmitTime(appPhysicianLess.getCreateTime());
        doctorAudit.setCreateTime(appPhysicianLess.getCreateTime());
        doctorAudit.setCreateTime(appPhysicianLess.getCreateTime());
        return doctorAuditMapper.insertSelective(doctorAudit);
    }
}
